package at.main.gui;

import at.main.android.Graphics;
import at.main.util.AllImage;

public class SplashPage {
	public int iTick;
	public SplashPage(){
		iTick =0;
	}
	public void paint(Graphics g){
		g.setColor(0x87CEFF);
		g.fillRect(0, 0, MyCanvas.iWidth, MyCanvas.iHeight);	
		if (AllImage.img_splash != null)
			g.drawImage(AllImage.img_splash, MyCanvas.iWidth / 2
					- AllImage.img_splash.getWidth() / 2, MyCanvas.iHeight / 2
					- AllImage.img_splash.getHeight() / 2, Graphics.TOP
					| Graphics.LEFT);
	}
	public void update(){	
		iTick++;
		if (iTick == 50) {
			MyCanvas.clearInput();
			MyCanvas.iCurrentPage = 3;
		}
		MyCanvas.clearInput();
	}
}
